<?php 
    $k = 0;
    foreach($this->data as $i => $item) { ?>
<tr class="row<?php echo $k;?>">
    <td>
        <div  class="selectable"  id="item_<?php echo $item->id; ?>">
            <?php echo $item->field_value; ?>
        </div>
    </td>
    <td width="20">
        <?php if ($item->field_order > 1) { ?>
            <div class="go_up" id="up_<?php echo $item->id; ?>">
                <img src="components/com_kaltura/assets/go-up.png" alt="<?php echo JText::_('GO_UP'); ?>" />
            </div>
        <?php } ?>
    </td>
    <td width="20">
        <?php if ($i < (count($this->data)-1)) { ?>
            <div class="go_down" id="down_<?php echo $item->id; ?>">
                <img src="components/com_kaltura/assets/go-down.png" alt="<?php echo JText::_('GO_DOWN'); ?>" />
            </div>
        <?php } ?>
    </td>
</tr>
<?php $k = 1 - $k; } ?>
